package com.fourforfo.fourmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fourforfo.common.utils.PageUtils;
import com.fourforfo.fourmall.ware.entity.PurchaseDetailEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author fourforfo
 * @email fourforfo@gmail.com
 * @date 2022-06-16 12:41:34
 */
public interface PurchaseDetailService extends IService<PurchaseDetailEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 更新所有purchaseDetail的purchaseId和status
     * @param purchaseId
     * @param purchaseDetailIds
     */
    void updatePurchaseIdAndStatus(Long purchaseId, List<Long> purchaseDetailIds);

    /**
     * 改变采购需求的状态
     * @param purchaseIds
     */
    void updateStatusByPurchaseId(List<Long> purchaseIds);
}

